package global

import (
	"github.com/bluele/gcache"
	"github.com/go-playground/validator/v10"
	"github.com/spf13/viper"
	"gorm.io/gorm"
	"svs/config"
)

var (
	DB       *gorm.DB
	VP       *viper.Viper
	CONFIG   config.Server
	VALIDATE *validator.Validate
	CACHE    gcache.Cache
)

func init() {
	VALIDATE = validator.New()
}
